package com.gadgets.busi.bm06.repository;

import com.gadgets.busi.bm06.pojo.TradeNodeLink;
import com.gadgets.framework.common.exception.GadgetsServiceException;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author UncleXiu
 * @version V1.0.0
 * @data 2022-02-25
 */
@Mapper
@Repository
public interface ITradeNodeLinkRepository {

    /**
     * 新增贸易节点关联信息
     * @param nodeLink                      关联信息
     * @return                              新增记录数
     * @throws GadgetsServiceException      异常信息
     */
    public int insertNodeLink(@Param(value = "info") TradeNodeLink nodeLink) throws GadgetsServiceException;

    /**
     * 查询全部关联信息
     * @return                              查询结果
     * @throws GadgetsServiceException      异常信息
     */
    public List<TradeNodeLink> selectAllLinkInfo() throws GadgetsServiceException;

}
